#include "nameserver.h"
#include "nameserversrv.h"

// Create handler
TOB::NameserverSRV srv;

// Define bridge
nsResult * requestaddr_1_svc(int *argp, struct svc_req *rqstp)
{
	static nsResult  result;
	result.result = srv.requestAddress(static_cast<Server::Type>(*argp), (TOB::Nameserver::IP&)result.ipAddr);
	return &result;
}
